

import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import { createPinia } from 'pinia'
const pinia = createPinia()

const app=createApp(App);
app.use(router)
// const cors = require("cors");
// app.use(cors()); //使用cors中间件
app.use(pinia) // 必须调用 app.use(pinia)
app.mount('#app')
// createApp(App).mount('#app');
